MsgText = "This window shows the capabilities of VPE, the Virtual Print Engine"
MsgText.Refresh
Call PrecisionProc(0)
End Sub
Private Sub PrecisionClose_Click()
Call ClosePrecision
End Sub
Private Sub Page1(ByVal hDoc As Long)
Dim DemoText As String
Dim y As Long
DemoText = "The moment of impact bursts through the silence and in a roar of sound, the final second is prolonged in a world of echoes as if concrete and clay of Broadway itself was reliving its memories."
DemoText = DemoText + Chr$(10) + "The last great march past. Newsman stands limp as a whimper as audience and eventare locked as one. Bing Crosby coos'You don't have to feel pain to sing the blues, you don't have to holla - you don't feel a thing in your dollar collar.' Martin Luther cries 'Everybody Sing!' and rings the grand old liberty bell. Leary, weary of his prison cell, walks on heaven, talks on hell."
DemoText = DemoText + Chr$(10) + "Who needs Medicare and the 35c flat rate fare, when Fred Astaire and Ginger Rogers are dancing through the air? From Broadway Melody stereotypes the band returns to 'Stars and Stripes' bringing a tear to the moonshiner, who's been pouring out his spirit from the illegal still. The pawn broker clears the noisy till and clutches his lucky dollar bill."
DemoText = DemoText + Chr$(10) + "Then the blackout." + Chr$(10) + Chr$(10) + "(Genesis, 'The Lamb lies down on Broadway')"
y = VpeWriteBox(hDoc, 575, 200, 1625, -1, "[Center PenSize 3]This demo shows the capabilities and precision of VPE." + Chr$(10) + "Print this page and compare not only the positions of the frames," + Chr$(10) + "but the positions of each letter that can be seen." + Chr$(10) + "(Switch the grid on.)" + Chr$(10) + "This is true WYSIWYG !!!" + Chr$(10) + "('What you see is what you get')" + Chr$(10) + "Note, that the nearest result can be seen at a scaling of 1:1." + Chr$(10) + "With every other scaling you get 'best results' in comparison to execution speed.")
y = VpeWriteBox(hDoc, 100, y + 75, 2000, -1, "['Arial' FontSize 14 Left Bold Italic Underline PenSize 0]RIGHT ALIGNED, 0.25 cm blue frame, light-blue backgr., red bold text, Arial 9pt")
Call VpeStoreSet(hDoc, HEADLINE)
Call VpeSelectFont(hDoc, "Arial", 9)
Call VpeSetPen(hDoc, 25, PS_SOLID, COLOR_BLUE)
Call VpeSetTextColor(hDoc, COLOR_LTRED)
Call VpeSetFontAttr(hDoc, ALIGN_RIGHT, 1, 0, 0)
Call VpeSetTransparentMode(hDoc, 0)
Call VpeSetBkgColor(hDoc, COLOR_CYAN)
Rem y+30 because frame = 0.25cm --> frame drawn around center of coordinates